/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.voiceguide;

/**
 *
 * @author manish
 */
public class VoiceFactory {

    public static Speakable getVoicePlayer(VoiceType voiceType) {
        if (voiceType == VoiceType.AUDIO_FILE) {
            return AudioFilePlayer.getInstance();
        } else if (voiceType == VoiceType.TEXT_TO_SPEECH) {
            return TextToSpeechPlayer.getInstance();
        }
        return null;
    }
}
